﻿using System;
using System.Collections.Generic;

namespace YaAppoint.Rules
{
    /// <summary>
    /// 规则模板
    /// </summary>
    public class RuleTemplate : CommonEntity
    {
        public virtual bool IsDirectory { get; set; } = false;

        /// <summary>
        /// 子级
        /// </summary>
        public virtual List<RuleTemplate>? Children { get; set; }


        /// <summary>
        /// 类名
        /// </summary>
        public virtual string? TypeName { get; set; } 

        /// <summary>
        /// 脚本
        /// </summary>
        public virtual string? Script { get; set; }

        /// <summary>
        /// 父级ID
        /// </summary>
        public virtual Guid? ParentId { get; set; }

        /// <summary>
        /// 父级
        /// </summary>
        public virtual RuleTemplate? Parent { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public virtual string? Description { get; set; }
    }
}
